Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Fix 64bit host CPU detection #743

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Conversation

jdemel
Copy link
Contributor

@jdemel jdemel commented Jan 12, 2024

In cases where we don't cross-compile, we might want to detect if a CPU is 32bit or 64bit. CMake provides functionality for this case starting in CMake 3.10. Let's use it.
From the top of my head, the oldest supported distribution are:

  • Ubuntu 20.04 with CMake 3.16
  • Debian buster with CMake 3.13.

Fixes #683

@jdemel jdemel requested a review from marcusmueller January 12, 2024 22:17
@jdemel
Copy link
Contributor Author

jdemel commented Jan 29, 2024

Since this PR bumps the minimum required CMake version, this should go into a feature release, i.e. VOLK v3.2.

In cases where we don't cross-compile, we might want to detect if a CPU
is 32bit or 64bit. CMake provides functionality for this case starting
in CMake 3.10. Let's use it.
Ubuntu 20.04 uses CMake 3.16. From the top of my head, this is the
oldest supported distribution. Debian buster ships with CMake 3.13.

Signed-off-by: Johannes Demel <jdemel@gnuradio.org>
@jdemel jdemel merged commit 6cfa5b2 into gnuradio:main Jul 9, 2024
34 checks passed
@jdemel jdemel deleted the fix-64bit-cpu branch July 9, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lib/CMakeLists.txt: check_type_size("void*[8]" SIZEOF_CPU BUILTIN_TYPES_ONLY) empty
1 participant